<?php

namespace Jhub1_Common\Entity;

use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Annotations\AnnotationReader;
use Doctrine\Common\Annotations\AnnotationRegistry;

/**
 * @ORM\Entity
 * @ORM\Table(name="ofGroupProp")
 */
class OfGroupProp
{
    /**
     * @ORM\Id
     * @ORM\Column(type="string", name="groupName", length=50, nullable=false);
     * @var string
     */
    private $groupName;

    /**
     * @ORM\Id
     * @ORM\Column(type="string", name="name", length=100, nullable=false)
     * @var string
     */
    private $name;

    /**
     * @ORM\Column(type="text", name="propValue", nullable=false)
     * @var string
     */
    private $propValue;

    public function getGroupName()
    {
        return $this->groupName;
    }

    public function setGroupName($val)
    {
        $this->groupName = $val;
    }

    public function getName()
    {
        return $this->name;
    }

    public function setName($val)
    {
        $this->name = $val;
    }

    public function getValue()
    {
        return $this->propValue;
    }

    public function setValue($val)
    {
        $this->propValue = $val;
    }
}
/*CREATE TABLE ofGroupProp
(
 --?   id INT PRIMARY KEY NOT NULL, -- added to make doctrine2 working
    groupName VARCHAR(50) NOT NULL,
    name VARCHAR(100) NOT NULL,
    propValue LONGTEXT NOT NULL,
    PRIMARY KEY ( groupName, name )
);*/
